#! /bin/bash

__check_result() {
    ret=$?
    echo "check result: $ret"
    if [ "$ret" != "0" ]; then
        exit 1
    fi
}

cd temp
[ -e "result" ] && rm result -fr
mkdir result
cp ../viewer/* result/ -ard
rm result/uiautomator.png
rm result/uiautomator.xml
tar xvf uiautomator.tgz -C result/
cd result/
zip -r9 result.zip *
mv result.zip ../
cd ..
rm -fr result

